Faster Browsing on the Raspberry Pi

I have found three browsers that work on the web: Chrome, FireFox, and Epiphany. FireFox had a name copyright conflict so they called it IceWeasel. IceWeasel Bites. Don't use it.
Chrome is good. It doesn't support Flash or HTML 5 video though. To install it, type sudo apt-get install chromium-browser
Epiphany comes installed already. It's in the menu under Web Browser. Why would they name their web browser Web Browser? Well, it's a lame name, but not as lame as Epiphany.
The best way I have found to speed up a browser is to get it stop saving files to the sd card. In this blog, I discuss two stategies: The Screwdriver and The Hammer.

The Screwdriver

Both browsers support an In Cognito window. Open the browser, click the icon just below the X that closes the window, and choose In Cognito from the menu. This opens a new In Cognito window. Close your old window because it is not In Cognito. With both browsers, it appears to still save junk to the SD card. It just deletes it when you're done. That defeats the whole point in having it.
If it jams, force it. If it breaks, it needed replacing anyway.
-- Murphy's Law And Other Reasons Things Go Wrong

The Hammer

I (Google) tracked down which folders these browsers write to and wrote scripts to mount small (100 Megs) ram drives at these locations. I have two scripts for each browser: One to turn on the ram drive and one to turn it off.
chromeram
echo Creating ram drive for /home/pi/.cache/chromium
sudo mount -t tmpfs -osize=150m tmpfs /home/pi/chrometemp
cp -p -r -t /home/pi/chrometemp /home/pi/.cache/chromium/*
sudo mount -t tmpfs -osize=150m tmpfs /home/pi/.cache/chromium
cp -p -r -t /home/pi/.cache/chromium /home/pi/chrometemp/*
sudo umount /home/pi/chrometemp

echo Creating ram drive for /home/pi/.config/chromium
sudo mount -t tmpfs -osize=50m tmpfs /home/pi/chrometemp
cp -p -r -t /home/pi/chrometemp /home/pi/.config/chromium/*
sudo mount -t tmpfs -osize=50m tmpfs /home/pi/.config/chromium
cp -p -r -t /home/pi/.config/chromium /home/pi/chrometemp/*
sudo umount /home/pi/chrometemp

nochromeram
echo Unmounting the ram drive from /home/pi/.cache/chromium
sudo umount /home/pi/.cache/chromium
echo Unmounting the ram drive from /home/pi/.config/chromium
sudo umount /home/pi/.config/chromium

webram
echo Creating ram drive for /home/pi/.cache/epiphany-browser
sudo mount -t tmpfs -osize=100m tmpfs /home/pi/chrometemp
cp -p -r -t /home/pi/chrometemp /home/pi/.cache/epiphany-browser/*
sudo mount -t tmpfs -osize=100m tmpfs /home/pi/.cache/epiphany-browser
cp -p -r -t /home/pi/.cache/epiphany-browser /home/pi/chrometemp/*
sudo umount /home/pi/chrometemp

echo Creating ram drive for /home/pi/.config/epiphany
sudo mount -t tmpfs -osize=100m tmpfs /home/pi/chrometemp
cp -p -r -t /home/pi/chrometemp /home/pi/.config/epiphany/*
sudo mount -t tmpfs -osize=100m tmpfs /home/pi/.config/epiphany
cp -p -r -t /home/pi/.config/epiphany /home/pi/chrometemp/*
sudo umount /home/pi/chrometemp

nowebram
echo Unmounting the ram drive from /home/pi/.cache/epiphany-browser
sudo umount /home/pi/.cache/epiphany-browser
echo Unmounting the ram drive from /home/pi/.config/epiphany
sudo umount /home/pi/.config/epiphany